package com.link4a.doms.web;

import com.link4a.doms.model.Module;
import com.link4a.doms.model.User;

import java.util.Date;
import java.util.List;

/**
 * @author brown
 */
public class UserWrapper {

	private User user;
	private List<Module> modules;
	private List<String> permissions;
	private final Date loginTime = new Date();

	public UserWrapper(User user, List<Module> modules, List<String> permissions) {
		this.user = user;
		this.modules = modules;
		this.permissions = permissions;
	}

	public User getUser() {
		return user;
	}

	public List<Module> getModules() {
		return modules;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public List<String> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<String> permissions) {
		this.permissions = permissions;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public void setModules(List<Module> modules) {
		this.modules = modules;
	}

}
